import React from 'react'
import AuthRoutes from './routes'
import { useDispatch } from 'react-redux'
import { filterAuth } from '@s/modules/user'
import { isLogin } from '@u'
export default function App() {
  const dispatch = useDispatch();
  // 处理 刷新之后 用户角色 数据过滤不触发问题
  if (isLogin()) {
    dispatch(filterAuth())
  }
  return (
    <>
      <AuthRoutes/>
    </>
  )
}
